<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge，chrome=1">

    <title>登录信息修改</title>

    <link rel="stylesheet" href="/static/css-lib/bootstrap.min.css" />

    <style>
        .container-margin-top {
            margin-top: 10px;
        }

        #password-1 {
            margin-left: 10px;
        }

        #password-2 {
            margin-left: 25px;
        }

        .picture-box {
            display: inline;
            margin-left: 20px;
        }

        #sms-send-btn {
            margin-left: 20px;
        }

        .input-width {
            width: 300px;
            height: 34px;
            padding: 6px 12px;
            font-size: 14px;
            line-height: 1.42857143;
            color: #555;
            background-color: #fff;
            background-image: none;
            border: 1px solid #ccc;
            border-radius: 4px;
            -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
            -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
            -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
            transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
        }

        @media (max-width: 768px){
            .input-width {
                width: 200px;
                height: 34px;
                padding: 6px 12px;
                font-size: 14px;
                line-height: 1.42857143;
                color: #555;
                background-color: #fff;
                background-image: none;
                border: 1px solid #ccc;
                border-radius: 4px;
                -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
                box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
                -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
                -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
                transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
            }
        }
    </style>
</head>
<body>
    <div class="container-fluid">
        <div class="row container-margin-top">
            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                <ul class="nav nav-tabs">
                    <li class="active"><a href="#userName" data-toggle="tab">用户名修改</a></li>
                    <li><a href="#password" data-toggle="tab">密码修改</a></li>
                    <li><a href="#phoneNum" data-toggle="tab">手机号修改</a></li>
                </ul>
            </div>
        </div>
        <div class="row container-margin-top">
            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                <div class="tab-content">

                    <!-- 用户名修改 -->
                    <div class="tab-pane fade in active" id="userName">
                        <ul class="list-group">
                            <li class="list-group-item">
                                原用户名
                                <input type="text" class="input-width" id="userName-output" value="${StudentInfo.name}" disabled>
                            </li>
                            <li class="list-group-item">
                                新用户名
                                <input id="u-name" type="text" class="input-width" />
                            </li>
                        </ul>
                        <button id="change-login-name" type="button" class="btn btn-primary">提交更改</button>
                    </div>

                    <!-- 密码修改 -->
                    <div class="tab-pane fade" id="password">
                        <form role="form">
                            <ul class="list-group">
                                <li class="list-group-item">
                                    原始密码
                                    <input type="password" class="input-width" id="password-1" autocomplete="off" />
                                </li>
                                <li class="list-group-item">
                                    新密码
                                    <input type="password" class="input-width" id="password-2" autocomplete="off">
                                </li>
                                <li class="list-group-item">
                                    确认新密码
                                    <input type="password" class="input-width" id="password-3" autocomplete="off">
                                </li>
                            </ul>
                        </form>
                        <button id="change-password" type="button" class="btn btn-primary">提交更改</button>
                    </div>

                    <!-- 手机号修改 -->
                    <div class="tab-pane fade" id="phoneNum">
                        <ul class="list-group">
                            <li class="list-group-item">
                                原始手机号
                                <input type="tel" class="input-width" id="phone-1" value="${StudentInfo.phone}" disabled>
                            </li>
                            <li class="list-group-item">
                                新手机号&nbsp;&nbsp;&nbsp;&nbsp;
                                <input type="tel" class="input-width" id="phone-2">
                            </li>
                            <li class="list-group-item">
                                图片验证码
                                <input type="text" class="input-width" id="picture">
                                <img id="sms-picture-box" src="/utils/imageAuthCode" alt="图片验证码" class="picture-box">
                            </li>
                            <li class="list-group-item">
                                短信验证码
                                <input type="text" class="input-width" id="sms-code">
                                <button id="sms-send-btn" type="button" class="btn btn-default">获取短信验证码</button>
                            </li>
                        </ul>
                        <button id="change-phone" type="button" class="btn btn-primary">提交更改</button>
                    </div>

                </div>
            </div>
        </div>
    </div>

    <div class="modal fade" id="error-box" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
         aria-hidden="true" data-backdrop="false" data-keyboard="false">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel">错误</h4>
                </div>
                <div id="error-content" class="modal-body"></div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                </div>
            </div>
        </div>
    </div>

    <script src="/static/js-lib/jquery-3.4.1.min.js"></script>
    <script src="/static/js-cus/student/Frame-ChangeLoginInfo.js"></script>
</body>
</html>